//
//  YMImageMessageBody.h
//  YMIM
//
//  Created by reyzhang on 2022/3/24.
//

#import "YMMessageBody.h"
#import <CoreGraphics/CoreGraphics.h>

NS_ASSUME_NONNULL_BEGIN

@interface YMImageMessageBody : YMMessageBody
@property (nonatomic, assign,readonly) CGFloat width; //图片宽度
@property (nonatomic, assign,readonly) CGFloat height; //图片高度


/**
 * 创建一个图片消息体
 */
- (instancetype)initWithImageUrl:(NSString *)imageUrl
                      imageWidth:(CGFloat)imageWidth
                     imageHeight:(CGFloat)imageHeight;


+ (instancetype)bodyWithImageUrl:(NSString *)imageUrl
                      imageWidth:(CGFloat)imageWidth
                     imageHeight:(CGFloat)imageHeight;


@end

NS_ASSUME_NONNULL_END
